
#ifndef  __SYS_SCENE_H__
#define  __SYS_SCENE_H__

//********************************************************************
#include "sys_port.h"

#include "list.h"
//********************************************************************
#ifdef __cplusplus
extern "C" {
#endif
//********************************************************************

typedef struct 
{
    char homeid[128];
    char sceneId[128];
    char sceneName[128];
    char sceneIcon[128];
} scene_info_t ;

typedef struct  {

	slist_t 	  e_tail;
    scene_info_t  e_attr;
}scene_link_t;

typedef struct  {

    int         len;
	slist_t *   e_head;
}scend_manage_t;
//********************************************************************

int scene_info_init(void);
int scene_info_destroy(void);
int scene_info_add(scene_info_t *msg);
int scene_info_del(char* sceneId);
int scene_info_del_all(void);
int scene_info_is_add(char* sceneid);
int scene_info_get_num(void);
scene_info_t* scene_info_get_byindex(int index);
//********************************************************************
#ifdef __cplusplus
}
#endif
//********************************************************************

#endif

